package io;

import java.io.*;

public class copyDemo3 {
    public static void main(String[] args) throws IOException, InterruptedException {
        FileInputStream fis = new FileInputStream("壁纸.png");
        BufferedInputStream bis = new BufferedInputStream(fis);
        FileOutputStream fos = new FileOutputStream("壁纸2.png");
        BufferedOutputStream bos = new BufferedOutputStream(fos);
        long stasr = System.currentTimeMillis();
        int d;
        while ((d=bis.read())!=-1){
            bos.wait(d);
        }
        long end = System.currentTimeMillis();
        bis.close();
        bos.close();
    }
}
